<%@ page language="java" contentType="text/html; charset=UTF-8" isELIgnored="false"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
    <head>
        <title>添加单证性质</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="../css/style.css" rel="stylesheet" type="text/css">
        <script type="text/javascript">
			
            function resetForm() {
                var MyForm = document.getElementById('form');
                MyForm.reset();
            
            }
        </script>
		<style>
body,td,th{font-size:12px}
.alllisttitle{ padding-left:10px}
a:link,a:visited{ color:#000000; text-decoration:none}
a:hover{ color:#ff0000; text-decoration:none}
select{ background:#ffffff!important}
</style>
    </head>
    <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
        <s:form id="form" name="form" action="%{actionURI}.action" method="post" theme="simple">
            <s:if test="actionURI=='save'">
                <input id="product.pid" name="product.pid" type="hidden" value="${pid}"></input>
                <table width="80%" height="" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#b5d6e6">
                <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>中文名称：</b>					</td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <s:textfield id="product.name" name="product.name" cssStyle="width: 100%"/>	

                    </td>
                 </tr>              
                 <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>编码：</b>					</td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <s:textfield id="product.userCode" name="product.userCode" cssStyle="width: 100%"/>	
                    </td>
                 </tr>   
                 <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>字母归类：</b>					
                    </td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <s:textfield id="product.en" name="product.en" cssStyle="width: 100%"/>	

                    </td>
                 </tr>  
                   <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>别名：</b>					
                    </td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <s:textfield id="product.alias" name="product.alias" cssStyle="width: 100%"/>	

                    </td>
                 </tr>  
         
                <tr>
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>详细说明：</b>					</td>
                    <td width="39%" bgcolor="#FFFFFF">
                        <s:textfield id="product.des" name="product.des" cssStyle="width: 100%"/>				  </td>
                </tr>

            </table>
            </s:if>
            <s:else>
                <s:hidden id="product.id" name="product.id"></s:hidden>
                <s:hidden id="product.pid" name="product.pid"></s:hidden>
                <s:hidden id="product.code" name="product.code"></s:hidden>
            
            <table width="80%" height="" border="0" cellspacing="1" cellpadding="2" align="center" bgcolor="#b5d6e6">
                <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>中文名称：</b>					</td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <input id="product.name" name="product.name" value="<s:property value="product.name"/>" cssStyle="width: 100%"/>	

                    </td>
                 </tr>              
                 <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>编码：</b>					</td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <input id="product.userCode" name="product.userCode"  value="<s:property value="product.userCode"/>" cssStyle="width: 100%"/>	
                    </td>
                 </tr>   
                 <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>字母归类：</b>					
                    </td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <input id="product.en" name="product.en"  value="<s:property value="product.en"/>" cssStyle="width: 100%"/>	

                    </td>
                 </tr>  
                  <tr height="28">
                    <td width="12%" align="right" nowrap bgcolor="#deebf1">
                        <b>别名：</b>					
                    </td>
                    <td width="37%" bgcolor="#FFFFFF">
                        <input id="product.alias" name="product.alias" value="<s:property value="product.alias"/>" cssStyle="width: 100%"/>	

                    </td>
                 </tr>  
                <tr>
                    <td width="12%" align="center" nowrap bgcolor="#deebf1">
                        <b>详细说明：</b>					</td>
                    <td width="39%" bgcolor="#FFFFFF">
                        <input id="product.des" name="product.des"  value="<s:property value="product.des"/>" cssStyle="width: 100%"/>				  </td>
                </tr>

            </table>
           </s:else>
            <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr height="28">
                    <td height="30" colspan="4" nowrap="nowrap" bgcolor="#FFFFFF" class="list_btm" style="text-align: center; border: 1">
                        &nbsp;&nbsp;
                        <input type="submit" value=" 保存 " class="mmBtn"/>
                        &nbsp;&nbsp;
                        <input type="button" value=" 重置 " class="mmBtn" onClick="resetForm();"/>
                        &nbsp;&nbsp;
                        <input type="button" value=" 返回 " onClick="window.location='list.action?parentId=${pid}&flag=${flag}'" class="mmBtn" /></td>
                </tr></table>

        </s:form>
    </body>
</html>